angular.module("myApp")
.config(function($stateProvider,$urlRouterProvider){
    $urlRouterProvider.otherwise("home");
    $stateProvider.state("home",{
        url : "/home",
        templateUrl : "views/home.html",
        controller : "HomeController"
    }).state("vip",{
        url : "/vip",
        templateUrl : "views/home/vip_center.html",
        //controller : "MineController"
    }).state("ershou",{
        url : "/home/ershou",
        templateUrl : "views/home/ershou.html",
        controller : "ershouController"
    }).state("login_in",{
        url: "/news/login_in",
        templateUrl : "./views/news/login_in.html",
    }).state("news_message",{
         url : "/news/news_message",
         templateUrl : "./views/news/newsMessage/news_message.html"
    }).state("house",{
        url : "/home/house",
        templateUrl : "views/home/house.html",
         controller : "HouseController"
    }).state("kanfang",{
        url : "/home/kanfang",
        templateUrl : "views/home/see_house.html"
    }).state("news",{
        url : "/home/news",
        templateUrl : "views/home/news.html",
        controller : "NewsController"
    }).state("tuan",{
        url : "/home/tuan",
        templateUrl : "views/home/tuan.html",
        controller : "TuanController"
    }).state("moredata",{
        url : "/home/moredata",
        templateUrl : "views/home/moredata.html",
        controller : "MoredataController"
    }).state("map",{
         url : "/home/map",
        templateUrl : "views/home/map.html",
    })
})
